package com.ztf.employee.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ztf.common.utils.PageUtils;
import com.ztf.common.utils.Query;

import com.ztf.employee.dao.LeaveDao;
import com.ztf.employee.entity.LeaveEntity;
import com.ztf.employee.service.LeaveService;


@Service("leaveService")
public class LeaveServiceImpl extends ServiceImpl<LeaveDao, LeaveEntity> implements LeaveService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<LeaveEntity> page = this.page(
                new Query<LeaveEntity>().getPage(params),
                new QueryWrapper<LeaveEntity>()
        );

        return new PageUtils(page);
    }

}